<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@page import="com.prjsystem.common.constant.MSGConstant"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script language="javascript" type="text/javascript" src="js/jquery-1.8.3.js"></script>
<script language="javascript" type="text/javascript"src="js/common.js"></script>
<script language="JavaScript" src="<%=basePath %>js/jquery-calendar.js"></script>
<title>Modify DailyWork</title>
<link href="css/base.css" rel="stylesheet" type="text/css" />
<link href="css/table.css" rel="stylesheet" type="text/css" />
<link href="css/jquery-calendar.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
//<![CDATA[
$(document).ready(function (){
	$("#createDate,#lastUpdateDate").calendar({
		//初始化
		dateFormat: 'YMD/',     //日期格式
		timeSeparators:''       //时分设置
	});
});
//]]>
function test(event){
	if (event.keyCode < 48 || event.keyCode > 57 ) {
	   event.returnValue = false;
	}
}
function textNull() {
	var idArray = new Array("appId","cvsType","cvsName","createUser");
	var checkflg=true;
		checkflg=checkEmpty(idArray,checkflg);
		if(checkflg){
			var r = confirm("确定修改么？");
			if(r){
				document.forms["modify"].action = "modifyCvs";
				document.forms["modify"].submit();
				return true;	
			}
	}
}
function back() {
	document.forms["modify"].action = "cvs_back";
	document.forms["modify"].submit();
}
</script>
</head>
<body>
<div id="container">
<div id="header" style="padding-left: 50px;">
<h1>CVS	詳細</h1>
</div>
<center>
<div id="message" align="left" style="padding:50px 0px 0px 275px;">
		<span style="color:red;">(*)</span>必須情報
	</div>
<div id="hid" style="width:700px;">
<s:form theme="simple" name="modify" onsubmit="return false">
	<table>
		<tr>
			<td style="padding-left: 10px;">
			<table>
			<tr>
					<td class="tdString">アプリ名<span style="color:red;">(*)</span></td>
					<td>
						<s:select list="cvsBean.selectListBean.appNameList" name = "cvsBean.cvsDetail.appId" 
						id="appId"
						listKey="key" listValue="name" headerValue="All" headerKey="0"cssStyle="width: 100px;"/>
					</td>
			</tr>
			<tr>
					<td class="tdString" id="wrNo">案件NO</td>
					<td>
						<s:textfield name="cvsBean.cvsDetail.wrNo" 
						id="wrNo" cssStyle="width: 94px;" />例：C0xxxx
					</td>
			</tr>
			<tr>
					<td class="tdString">CvsType<span style="color:red;">(*)</span></td>
					<td>
						<s:select list="cvsBean.selectListBean.cvsTypeList" name = "cvsBean.cvsDetail.cvsType" 
						id="cvsType"
						listKey="key" listValue="name" headerValue="All" headerKey="0"cssStyle="width: 100px;"/>
					</td>
			</tr>
			<tr>
					<td class="tdString">CVS管理名<span style="color:red;">(*)</span></td>
					<td>
						<s:textfield name="cvsBean.cvsDetail.cvsName" 
						id="cvsName" cssStyle="width: 94px;" />
					</td>
			</tr>
			<tr>
					<td class="tdString">作成前</td>
					<td>
						<s:textfield  name="cvsBean.cvsDetail.tagBefore"  id="tagBefore"
						cssStyle="width: 94px;"/>
					</td>
			</tr>
			<tr><td colspan="2" class="tdString">関連案件NO</td></tr>
			<tr>
					
					<td colspan="2"><s:textarea rows="2" cols="19"
						name="cvsBean.cvsDetail.relatedWr" id="relatedWr" cssStyle="float:left;"></s:textarea></td>
			</tr>
			</table>
			</td>
			<td style="padding-left: 80px;">
			<table>
			<tr>
					<td class="tdString">作成後</td>
					<td>
						<s:textfield  name="cvsBean.cvsDetail.tagDone"  id="tagDone"
						cssStyle="width: 94px;"/>
					</td>
			</tr>
			<tr>
					<td class="tdString">作成者<span style="color:red;">(*)</span></td>
					<td>
						<s:select list="cvsBean.selectListBean.allUserName" name = "cvsBean.cvsDetail.createUser" 
						id="createUser"
						listKey="key" listValue="name" headerValue="All" headerKey="0"cssStyle="width: 100px;"/>
					</td>
				</tr>
			<tr>
					<td class="tdString">更新者 </td>
					<td>
						<s:select list="cvsBean.selectListBean.allUserName" name = "cvsBean.cvsDetail.lastUpdateUser" 
						listKey="key" listValue="name" headerValue="All" headerKey="0"cssStyle="width: 100px;"/>
					</td>
				</tr>
				<tr>
					<td class="tdString">作成日付 </td>
					<td>
						<s:textfield name="cvsBean.cvsDetail.createDate" 
						id="createDate" cssStyle="width: 94px;" />
					</td>
				</tr>
				<tr>
					<td class="tdString">更新日付</td>
					<td>
						<s:textfield  name="cvsBean.cvsDetail.lastUpdateDate"  id="lastUpdateDate"
						cssStyle="width: 94px;"/>
					</td>
				</tr>
				<tr>
					<td colspan="2" class="tdString">コメント</td>
				</tr>
				<tr>
					<td colspan="2"><s:textarea rows="2" cols="19"
						name="cvsBean.cvsDetail.comments" cssStyle="float:left;"></s:textarea></td>
				</tr>
			</table>
			</td>
		</tr>
		<tr>
			<td align="right"></td>
			<td align="right"><s:submit value="%{getText('COMMON_BUTTON_SUBMIT')}" cssClass="ButtonCss" onclick="textNull();"/>
		    <s:submit name="Back" value="%{getText('COMMON_BUTTON_BACK')}" cssClass="ButtonCss" onclick="back();"/></td>
		</tr>
	</table>
	<s:hidden name="cvsBean.cvsDetail.cvsId" />
	<s:hidden name="cvsBean.cvsId" />
</s:form>
</div>
</center>
<div id="footer">Copyright accenture.com.cn</div>
</div>
</body>
</html>